unit ColorFill;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, ComCtrls, StdCtrls, ExtCtrls;

type
  TColorFillForm = class(TForm)
    lbWidth: TLabel;
    lbWidthUnit: TLabel;
    lbHeight: TLabel;
    lbHeightUnit: TLabel;
    btUpDownWidth: TUpDown;
    btUpDownHeight: TUpDown;
    ColorDialog: TColorDialog;
    btOK: TButton;
    btCancel: TButton;
    ImageHeight: TEdit;
    pnColor: TPanel;
    lbColor: TLabel;
    btSelect: TButton;
    ImageWidth: TEdit;
    procedure btSelectClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  ColorFillForm:TColorFillForm;

implementation

{$R *.dfm}

procedure TColorFillForm.btSelectClick(Sender: TObject);
begin
  with ColorDialog do
  begin
    Color:= pnColor.Color;
    if Execute then pnColor.Color:=Color;
  end;
end;







end.
